package com.zelix;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Hashtable;

public class fy {

    private static int a = 100;
    Hashtable b;
    private int c;
    private int d;

    public fy() {
        this(75, 15);
    }

    public fy(int i) {
        this(i, 15);
    }

    public fy(int i, int j) {
        c = px.a(i);
        d = px.a(j);
        b = new Hashtable(c);
    }

    public void a() {
        Enumeration enumeration;
        enumeration = b.elements();
        while (enumeration.hasMoreElements()) {
            ((Hashtable) enumeration.nextElement()).clear();
        }
        b.clear();
    }

    public Object clone() {
        fy fy1;
        Enumeration enumeration;
        int i = b.size();
        fy1 = new fy(i * 2 + 1);
        enumeration = b.keys();

        while (enumeration.hasMoreElements()) {
            Object obj = enumeration.nextElement();
            Hashtable hashtable = (Hashtable) b.get(obj);
            fy1.a(obj, (Hashtable) hashtable.clone());
        }
        return fy1;
    }

    public boolean a(Object obj) {
        return b.containsKey(obj);
    }

    public boolean a(Object obj, Object obj1) {
        Hashtable hashtable = (Hashtable) b.get(obj);
        return hashtable != null && hashtable.containsKey(obj1);
    }

    public Enumeration b() {
        ArrayList arraylist;
        Enumeration enumeration;
        arraylist = new ArrayList(c());
        enumeration = b.elements();
        while (enumeration.hasMoreElements()) {
            Enumeration enumeration1;
            Hashtable hashtable = (Hashtable) enumeration.nextElement();
            enumeration1 = hashtable.elements();
            while (enumeration1.hasMoreElements()) {
                arraylist.add(enumeration1.nextElement());
            }
        }
        return Collections.enumeration(arraylist);
    }

    public int c() {
        int i;
        Enumeration enumeration;
        i = 0;
        enumeration = b.elements();
        while (enumeration.hasMoreElements()) {
            Hashtable hashtable = (Hashtable) enumeration.nextElement();
            if (hashtable != null)
                i += hashtable.size();
        }
        return i;
    }

    public Hashtable b(Object obj) {
        return (Hashtable) b.get(obj);
    }

    public Object b(Object obj, Object obj1) {
        Hashtable hashtable = (Hashtable) b.get(obj);
        if (hashtable == null)
            return null;
        else
            return hashtable.get(obj1);
    }

    public Enumeration d() {
        return b.keys();
    }

    public Object b(Object obj, Object obj1, Object obj2) {
        Object obj3 = null;
        Hashtable hashtable = (Hashtable) b.get(obj);
        if (hashtable == null) {
            hashtable = new Hashtable(d);
            hashtable.put(obj1, obj2);
            b.put(obj, hashtable);
        } else {
            obj3 = hashtable.put(obj1, obj2);
        }
        return obj3;
    }

    public Hashtable a(Object obj, Hashtable hashtable) {
        return (Hashtable) b.put(obj, hashtable);
    }

    public Hashtable c(Object obj) {
        return (Hashtable) b.remove(obj);
    }

    public Object c(Object obj, Object obj1) {
        Object obj2 = null;
        Hashtable hashtable = (Hashtable) b.get(obj);
        if (hashtable != null) {
            obj2 = hashtable.remove(obj1);
            if (hashtable.size() == 0)
                b.remove(obj);
        }
        return obj2;
    }

    public Enumeration e() {
        return b.elements();
    }

    public int f() {
        return b.size();
    }

}